/*
 * Created on 2005/04/25
 * Author aki@www.xucker.jpn.org
 * License Apache2.0 or Common Public License
 */
package jp.sourceforge.akjrcp.snack;

/**
 * 
 *
 */
public class SmallFormant {
private short f1;
private short f2;
private short f3;
private short f4;

public void setF1(int f1) {
    this.f1 = (short)f1;
}

public void setF2(int f2) {
    this.f2 = (short)f2;
}

public void setF3(int f3) {
    this.f3 = (short)f3;
}

public void setF4(int f4) {
    this.f4 = (short)f4;
}

public short getF1() {
    return f1;
}
public void setF1(short f1) {
    this.f1 = f1;
}
public short getF2() {
    return f2;
}
public void setF2(short f2) {
    this.f2 = f2;
}
public short getF3() {
    return f3;
}
public void setF3(short f3) {
    this.f3 = f3;
}
public short getF4() {
    return f4;
}
public void setF4(short f4) {
    this.f4 = f4;
}
public SmallFormant(){
}

public SmallFormant(Formant formant){
    this.f1=(short)formant.getF1();
    this.f2=(short)formant.getF2();
    this.f3=(short)formant.getF3();
    this.f4=(short)formant.getF4();
}

public String toString(){
    return "F("+f1+","+f2+","+f3+","+f4+")";
}
public static double defaultMillisecond=10;
public static double toMillisecond(SmallFormant[] formants){
    return formants.length*defaultMillisecond;
}


}
